<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>headset.gui.MainController.OperationController</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="headset-module.html">Package&nbsp;headset</a> ::
        <a href="headset.gui-module.html">Package&nbsp;gui</a> ::
        <a href="headset.gui.MainController-module.html">Module&nbsp;MainController</a> ::
        Class&nbsp;OperationController
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class OperationController</h1><p class="nomargin-top"><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_headset__13" name="uml_class_diagram_for_headset__13">
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#__init__" title="The constructor for OperationController initialises the main variabels &#160;needed to run." alt="" coords="17,409,215,428"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#BindEvents" title="This method binds the events to the widgets of OperationView." alt="" coords="17,428,215,447"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#ChangeInputController" title="Method for changing the imput controller, depending on the type of input &#160;tool is selected for recording." alt="" coords="17,447,215,465"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnClosingFrame" title="Method for handling an incoming event for closing the program." alt="" coords="17,465,215,484"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnTick" title="Method for handling an incoming event to update the timer." alt="" coords="17,484,215,503"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnToolNone" title="Method for handling an incoming event when [None] is clicked under menu &#160;Input Tools." alt="" coords="17,503,215,521"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnToolPosition" title="Method for handling an incoming event when [Position Instrument] is clicked under menu Input Tools." alt="" coords="17,521,215,540"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnToolJoystick" title="Method for handling an incoming event when [Joystick controller] is clicked under menu Input Tools." alt="" coords="17,540,215,559"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnHead" title="Method for handling an incoming event when the [Head] checkbox is clicked." alt="" coords="17,559,215,577"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnTumor" title="Method for handling an incoming event when the [Tumor] checkbox is clicked." alt="" coords="17,577,215,596"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnSafePath" title="Method for handling an incoming event when the [Safe path] checkbox is &#160;clicked." alt="" coords="17,596,215,615"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnTool" title="Method for handling an incoming event when the [Tool] checkbox is clicked." alt="" coords="17,615,215,633"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#OnRecording" title="Method for handling an incoming event when the recording button is pressed." alt="" coords="17,633,215,652"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html#GetAboutDoc" title="Method for returning backgroundinformation about HeaDSET PathRecorder." alt="" coords="17,652,215,671"/>
<area shape="rect" href="headset.gui.MainController.OperationController-class.html" title="OperationController is a derived class from CommonController and provides specific features and event handling mechanisms for OperationView." alt="" coords="16,384,216,672"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#InitProjectSettings" title="This method initialises some variables in case a new project is openend." alt="" coords="56,223,176,241"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OnEnterPanel" title="Method for handling an incoming event to show explanatory text in &#160;explanantion panel (in the view)." alt="" coords="56,241,176,260"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OnOpen" title="Method for handling an incoming event to open another project." alt="" coords="56,260,176,279"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OnSave" title="Method for handling an incoming event to save the current project." alt="" coords="56,279,176,297"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OnSaveAs" title="Method for handling an incoming event to save the current project under &#160;another filename." alt="" coords="56,297,176,316"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OnProp" title="Method for handling an incoming event to get property information about the current project." alt="" coords="56,316,176,335"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html#OpenProject" title="Method for opening another project by providing a dialog window for &#160;selecting the HeaDSET projectfile." alt="" coords="56,335,176,353"/>
<area shape="rect" href="headset.gui.MainController.CommonController-class.html" title="CommonController is a derived class from Controller and provides additional common features and event handling mechanisms for specific views." alt="" coords="55,197,177,355"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnExit" title="Method for handling an incoming event to exit the program." alt="" coords="45,36,187,55"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnAbout" title="Method for handling an incoming event to show background information about &#160;the HeaDSET program." alt="" coords="45,55,187,73"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnHelp" title="Method for handling an incoming event to show the help information of the &#160;HeaDSET program." alt="" coords="45,73,187,92"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnSingleView" title="Method for handling an incoming event to change the view to a single &#160;viewport." alt="" coords="45,92,187,111"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnMultiView" title="Method for handling an incoming event to change the view to a multiple &#160;viewport." alt="" coords="45,111,187,129"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#OnConfigView" title="Method for handling an incoming event to change the view to a single &#160;viewport." alt="" coords="45,129,187,148"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html#GetTextFromFile" title="Method for extracting textual information from a textfile." alt="" coords="45,148,187,167"/>
<area shape="rect" href="headset.gui.MainController.Controller-class.html" title="Controller is the superclass of the different controllers of the HeaDSET program." alt="" coords="44,11,188,168"/>
</map>
  <img src="uml_class_diagram_for_headset__13.gif" alt='' usemap="#uml_class_diagram_for_headset__13" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>OperationController is a derived class from CommonController and 
  provides specific features and event handling mechanisms for 
  OperationView.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">model</span>,
        <span class="summary-sig-arg">view</span>)</span><br />
      The constructor for OperationController initialises the main 
      variabels needed to run.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#BindEvents" class="summary-sig-name">BindEvents</a>(<span class="summary-sig-arg">self</span>)</span><br />
      This method binds the events to the widgets of OperationView.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.BindEvents">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#ChangeInputController" class="summary-sig-name">ChangeInputController</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">newController</span>)</span><br />
      Method for changing the imput controller, depending on the type of 
      input tool is selected for recording.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.ChangeInputController">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnClosingFrame" class="summary-sig-name">OnClosingFrame</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event for closing the program.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnClosingFrame">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnTick" class="summary-sig-name">OnTick</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event to update the timer.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTick">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnToolNone" class="summary-sig-name">OnToolNone</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when [None] is clicked under 
      menu Input Tools.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolNone">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnToolPosition" class="summary-sig-name">OnToolPosition</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when [Position Instrument] is 
      clicked under menu Input Tools.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolPosition">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnToolJoystick" class="summary-sig-name">OnToolJoystick</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when [Joystick controller] is 
      clicked under menu Input Tools.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolJoystick">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnHead" class="summary-sig-name">OnHead</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when the [Head] checkbox is 
      clicked.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnHead">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnTumor" class="summary-sig-name">OnTumor</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when the [Tumor] checkbox is 
      clicked.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTumor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnSafePath" class="summary-sig-name">OnSafePath</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when the [Safe path] checkbox 
      is clicked.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnSafePath">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnTool" class="summary-sig-name">OnTool</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when the [Tool] checkbox is 
      clicked.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTool">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#OnRecording" class="summary-sig-name">OnRecording</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">event</span>)</span><br />
      Method for handling an incoming event when the recording button is 
      pressed.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnRecording">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="headset.gui.MainController.OperationController-class.html#GetAboutDoc" class="summary-sig-name">GetAboutDoc</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Method for returning backgroundinformation about HeaDSET 
      PathRecorder.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.GetAboutDoc">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.gui.MainController.CommonController-class.html">CommonController</a></code></b>:
      <code><a href="headset.gui.MainController.CommonController-class.html#InitProjectSettings">InitProjectSettings</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OnEnterPanel">OnEnterPanel</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OnOpen">OnOpen</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OnProp">OnProp</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OnSave">OnSave</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OnSaveAs">OnSaveAs</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#OpenProject">OpenProject</a></code>
      </p>
    <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.gui.MainController.CommonController-class.html">CommonController</a></code></b> (private):
      <code><a href="headset.gui.MainController.CommonController-class.html#_LoadDicom" onclick="show_private();">_LoadDicom</a></code>,
      <code><a href="headset.gui.MainController.CommonController-class.html#_Save" onclick="show_private();">_Save</a></code>
      </p></div>
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="headset.gui.MainController.Controller-class.html">Controller</a></code></b>:
      <code><a href="headset.gui.MainController.Controller-class.html#GetTextFromFile">GetTextFromFile</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnAbout">OnAbout</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnConfigView">OnConfigView</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnExit">OnExit</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnHelp">OnHelp</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnMultiView">OnMultiView</a></code>,
      <code><a href="headset.gui.MainController.Controller-class.html#OnSingleView">OnSingleView</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">model</span>,
        <span class="sig-arg">view</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>The constructor for OperationController initialises the main variabels
  needed to run.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>model</code></strong> - The model belonging to this GUI.</li>
        <li><strong class="pname"><code>view</code></strong> - The view where events are handled from.</li>
    </ul></dd>
    <dt>Overrides:
        <a href="headset.gui.MainController.Controller-class.html#__init__">Controller.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="BindEvents"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">BindEvents</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.BindEvents">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>This method binds the events to the widgets of OperationView.</p>
  <dl class="fields">
    <dt>Overrides:
        <a href="headset.gui.MainController.Controller-class.html#BindEvents">Controller.BindEvents</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="ChangeInputController"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ChangeInputController</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">newController</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.ChangeInputController">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for changing the imput controller, depending on the type of 
  input tool is selected for recording.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>newController</code></strong> - The input controller to change to.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnClosingFrame"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnClosingFrame</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnClosingFrame">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event for closing the program.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
    <dt>Overrides:
        <a href="headset.gui.MainController.CommonController-class.html#OnClosingFrame">CommonController.OnClosingFrame</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="OnTick"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnTick</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTick">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event to update the timer.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnToolNone"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnToolNone</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolNone">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when [None] is clicked under 
  menu Input Tools.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnToolPosition"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnToolPosition</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolPosition">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when [Position Instrument] is 
  clicked under menu Input Tools.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnToolJoystick"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnToolJoystick</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnToolJoystick">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when [Joystick controller] is 
  clicked under menu Input Tools.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnHead"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnHead</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnHead">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when the [Head] checkbox is 
  clicked.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnTumor"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnTumor</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTumor">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when the [Tumor] checkbox is 
  clicked.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnSafePath"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnSafePath</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnSafePath">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when the [Safe path] checkbox is
  clicked.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnTool"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnTool</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnTool">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when the [Tool] checkbox is 
  clicked.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="OnRecording"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">OnRecording</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">event</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.OnRecording">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for handling an incoming event when the recording button is 
  pressed.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>event</code></strong> - Incoming event from view.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="GetAboutDoc"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">GetAboutDoc</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="headset.gui.MainController-pysrc.html#OperationController.GetAboutDoc">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Method for returning backgroundinformation about HeaDSET 
  PathRecorder.</p>
  <dl class="fields">
    <dt>Returns:</dt>
        <dd>String with information about the program.</dd>
    <dt>Overrides:
        <a href="headset.gui.MainController.Controller-class.html#GetAboutDoc">Controller.GetAboutDoc</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="headset-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >HeaDSET</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    <a href="epydoc-log.html">Generated by Epydoc
    3.0.1 on Wed Feb 25 12:57:53 2009</a>
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
